package com.nmsl.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.registration.mapper.skxMedicalRecordMapper;
import com.nmsl.registration.domain.skxMedicalRecord;
import com.nmsl.registration.service.IskxMedicalRecordService;

/**
 * 病历信息Service业务层处理
 * 
 * @author skx
 * @date 2025-02-24
 */
@Service
public class skxMedicalRecordServiceImpl implements IskxMedicalRecordService 
{
    @Autowired
    private skxMedicalRecordMapper skxMedicalRecordMapper;

    /**
     * 查询病历信息
     * 
     * @param medicalRecordId 病历信息主键
     * @return 病历信息
     */
    @Override
    public skxMedicalRecord selectskxMedicalRecordByMedicalRecordId(Long visitRecordId)
    {
        return skxMedicalRecordMapper.selectskxMedicalRecordByMedicalRecordId(visitRecordId);
    }

    /**
     * 查询病历信息列表
     * 
     * @param skxMedicalRecord 病历信息
     * @return 病历信息
     */
    @Override
    public List<skxMedicalRecord> selectskxMedicalRecordList(skxMedicalRecord skxMedicalRecord)
    {
        return skxMedicalRecordMapper.selectskxMedicalRecordList(skxMedicalRecord);
    }

    /**
     * 新增病历信息
     * 
     * @param skxMedicalRecord 病历信息
     * @return 结果
     */
    @Override
    public int insertskxMedicalRecord(skxMedicalRecord skxMedicalRecord)
    {
        return skxMedicalRecordMapper.insertskxMedicalRecord(skxMedicalRecord);
    }

    /**
     * 修改病历信息
     * 
     * @param skxMedicalRecord 病历信息
     * @return 结果
     */
    @Override
    public int updateskxMedicalRecord(skxMedicalRecord skxMedicalRecord)
    {
        return skxMedicalRecordMapper.updateskxMedicalRecord(skxMedicalRecord);
    }

    /**
     * 批量删除病历信息
     * 
     * @param medicalRecordIds 需要删除的病历信息主键
     * @return 结果
     */
    @Override
    public int deleteskxMedicalRecordByMedicalRecordIds(Long[] medicalRecordIds)
    {
        return skxMedicalRecordMapper.deleteskxMedicalRecordByMedicalRecordIds(medicalRecordIds);
    }

    /**
     * 删除病历信息信息
     * 
     * @param medicalRecordId 病历信息主键
     * @return 结果
     */
    @Override
    public int deleteskxMedicalRecordByMedicalRecordId(Long medicalRecordId)
    {
        return skxMedicalRecordMapper.deleteskxMedicalRecordByMedicalRecordId(medicalRecordId);
    }
}
